package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.User;

import java.util.Map;

public interface UserService {
    User findByUsername(String username);

    PageResult findUserByPage(QueryPageBean queryPageBean);

    Result add(User user, Integer[] roleIds);

    Result modifyPassword(Map map);

    Map findUserById(Integer id);

    void edit(User user, Integer[] roleIds);

    Result deleteUser(Integer id);
}
